package cn.org.july.weixin.controller;

import cn.org.july.weixin.service.accesstoken.AccessTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @auther: wanghongjie
 * @blame: wanghongjie
 * @date: 2020-08-30 11:06
 * @Description:
 */
@RestController
@RequestMapping("/wx/refreshAccessToken")
public class AccessTokeController {

    @Autowired
    private AccessTokenService accessTokenService;

    @GetMapping
    public String refreshAccessToken() {
        String accessToken = accessTokenService.getAccessToken();
        return accessToken;
    }

}
